package org.wzg.aityweb.WebService.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.wzg.aityweb.Entity.ConsultOrder;
import org.wzg.aityweb.Mapper.OrderConsultMapper;
import org.wzg.aityweb.WebService.ConSultService;

@Service
public class ConSultServiceImpl implements ConSultService {

    @Autowired
    public OrderConsultMapper orderConsultMapper;
    @Override
    @Transactional
    public void insertMsg(ConsultOrder order) {
        orderConsultMapper.insertMsg(order);
        System.out.println("预约成功");
    }

    @Override
    public ConsultOrder orderornot(String number) {
        ConsultOrder i = orderConsultMapper.orderornot(number);
        return i;
    }
}
